% ************************************************************************ 
%     Module name   : Lynx Simulation - Radar Run                                                     
%                                                                          
%     Description   : This will run the Track mode on a specific target.                                                    
%                                                                          
%     $Header: /Lynx/SimulationFramework/RSP/IFS/IFSRun.m 2     15/10/08 16:08 Lwabeke $ 
%                                                                          
%    $Author: Lwabeke $	            
%                                                                         
%    $Revision: 2 $                
%                                                                         
% ************************************************************************
%     $History: IFSRun.m $ 
% 
%
% ************************************************************************
function [reward] = RewardCalc(changedInfo, radarState)

if strcmp(radarState.radarSetup.mode,'Search') == 1
  reward = size(changedInfo.newTargets,2);
  
%  reward = reward / changedInfo.usedTime;
else
    reward = 0;
end
